<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="<?php echo $ur.'protected/extensions/bootstrap/dist/js/bootstrap.min.js'; ?>"></script>
<script type="text/javascript">
        $(document).ready(function() {
            // Create two variable with the names of the months and days in an array
            //var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; 
            var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
            //var dayNames= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
            var dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]

            // Create a newDate() object
            var newDate = new Date(<?php echo time(); ?> * 1000);
            // Extract the current date from Date object
            newDate.setDate(newDate.getDate());
            // Output the day, date, month and year   
            $('#Date').html(dayNames[newDate.getDay()] + ", " + newDate.getDate() + ' ' + monthNames[newDate.getMonth()] + ' ' + newDate.getFullYear());

            var flag1 = true;
            setInterval(function() {
                // Create a newDate() object and extract the seconds of the current time on the visitor's
                var seconds = new Date();
                if (flag1) {
                    seconds.setHours(15, 35, 1);
                    flag1 = false;
                }
                // Add a leading zero to seconds value
                var detik = seconds.getSeconds();
                $("#sec").html((detik < 10 ? "0" : "") + detik);
            }, 1000);

            var flag2 = true;

            setInterval(function() {
                // Create a newDate() object and extract the minutes of the current time on the visitor's
                var minutes = new Date();

                if (flag2) {
                    minutes.setHours(15, 35, 1);
                    flag2 = false;
                }
                // Add a leading zero to the minutes value
                var menit = minutes.getMinutes();
                $("#min").html((menit < 10 ? "0" : "") + menit);
            }, 1000);

            var flag3 = true;
            setInterval(function() {
                // Create a newDate() object and extract the hours of the current time on the visitor's
                var hours = new Date();

                if (flag3) {
                    hours.setHours(15, 35, 1);
                    flag3 = false;
                }
                var jam = hours.getHours();
                // Add a leading zero to the hours value
                $("#hours").html((jam < 10 ? "0" : "") + jam);
            }, 1000);
        });
    </script>
<style>
	.clock {
    color: #000000;
    margin: -38px 0 -50px 777px;
    padding: 26px;
    width: 214px;
}
#Date {
    border-right: 3px solid #D3D3D3;
    font-family: 'BebasNeueRegular',Arial,Helvetica,sans-serif;
    font-size: 26px;
    text-align: center;
    text-shadow: 0 0 5px #B29A96;
	 
}
ul.time {
    list-style: none outside none;
    margin: -18px 0 0 157px;
    padding: 0;
    text-align: center;
    width: 210px;
}
ul.time li {
    display: inline;
    font-family: 'BebasNeueRegular',Arial,Helvetica,sans-serif;
    font-size: 1.8em;
    text-align: center;
    text-shadow: 0 0 5px #B29A96;
}
#point {
    animation: 1s ease 0s normal none infinite mymove;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
}
	</style>

<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	<?php $ur = Yii::app()->request->getbaseUrl().'/'; ?>
	<!-- DARI EXTENSION BOOTSTRAP -->
		<?php
			$cs        = Yii::app()->clientScript;
			$themePath = Yii::app()->baseUrl;

			/**
			 * StyleSHeets
			 */
			$cs->registerCssFile($ur.'protected/extensions/bootstrap/dist/css/bootstrap.css');
			$cs->registerCssFile($ur.'protected/extensions/bootstrap/dist/css/bootstrap-theme.css');

			/**
			 * JavaScripts
			 */
			$cs->registerCoreScript('jquery', CClientScript::POS_END);
			$cs->registerCoreScript('jquery.ui', CClientScript::POS_END);
			$cs->registerScriptFile($ur.'protected/extensions/bootstrap/dist/js/bootstrap.min.js', CClientScript::POS_END);
			$cs->registerScript('tooltip', "$('[data-toggle=\"tooltip\"]').tooltip();$('[data-toggle=\"popover\"]').tooltip()", CClientScript::POS_READY);
		?>
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		    <script src="<?php
		//echo Yii::app()->theme->baseUrl . '/assets/js/html5shiv.js';
		?>"></script>
		    <script src="<?php
		//echo Yii::app()->theme->baseUrl . '/assets/js/respond.min.js';
		?>"></script>
		<![endif]-->
	<!-- DARI EXTENSION BOOTSTRAP -->


	<!-- BAWAAN YII -->
		<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -->
		<!-- <meta name="language" content="en" /> -->

		<!-- blueprint CSS framework -->
		<!-- <link rel="stylesheet" type="text/css" href="<?php //echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" /> -->
		<!-- <link rel="stylesheet" type="text/css" href="<?php //echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" /> -->
		<!--[if lt IE 8]>
		<link rel="stylesheet" type="text/css" href="<?php //echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
		<![endif]-->

		<!-- <link rel="stylesheet" type="text/css" href="<?php //echo Yii::app()->request->baseUrl; ?>/css/main.css" /> -->
		<!-- <link rel="stylesheet" type="text/css" href="<?php //echo Yii::app()->request->baseUrl; ?>/css/form.css" /> -->
	<!-- BAWAAN YII -->
	<!-- Bootstrap core CSS -->
    <link href="<?php echo $ur.'protected/extensions/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet'; ?>">
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	<style>
		body {
		  padding-top: 20px;
		  padding-bottom: 20px;
		}

		.navbar {
		  margin-bottom: 20px;
		}
	</style>
</head>

<body>

<div class="container" id="page">
	<div id="header">
		<div id="logo"><?php //echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->

	<div id="mainmenu">
		<?php
			$this->widget('bootstrap.widgets.BsNavbar', array(
			    'collapse' => true,
			    'brandLabel' => BsHtml::icon(BsHtml::GLYPHICON_HOME),
			    'brandUrl' => Yii::app()->homeUrl.'/site/index',
			    'items' => array(
			        array(
			            'class' => 'bootstrap.widgets.BsNav',
			            'type' => 'navbar',
			            'activateParents' => true,
			            'items' => array(
			                array(
			                    'label' => 'About',
			                    'url' => array(
			                        '/site/page',
			                        'view' => 'about'
			                    )
			                ),
			                array(
			                    'label' => 'Contact',
			                    'url' => array(
			                        '/site/contact'
			                    )
			                ),
			                array(
			                    'label' => 'Settings',
			                    'url'=> '#',
			                    'items'=> array(
			                    	array(
			                    		'label' => 'Add Place',
			                    		'url' => array('/gismarker/index'),
			                    	),
			                    ),
			                ),
			                array(
			                    'label' => 'Login',
			                    'url' => array(
			                        '/site/login'
			                    ),
			                    'pull' => BsHtml::NAVBAR_NAV_PULL_LEFT,
			                    'visible' => Yii::app()->user->isGuest
			                ),
			                array(
			                    'label' => 'Logout (' . Yii::app()->user->name . ')',
			                    'pull' => BsHtml::NAVBAR_NAV_PULL_LEFT,
			                    'url' => array(
			                        '/site/logout'
			                    ),
			                    'visible' => !Yii::app()->user->isGuest
			                )
			            ),
			            'htmlOptions' => array(
			                'pull' => BsHtml::NAVBAR_NAV_PULL_LEFT,
			                //'fluid' => true
			            )
			        )
			        
			    )
			));
		?>		
	</div><!-- mainmenu -->
	<div class="clock" style="font-size:8px;"><div style="margin-top:-7px;padding-right:130px"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/calendar.png', '', array('width' => '24', 'height' => '24')) ?></div>
	<div id="Date" style="font-size:14px;margin-top:-20px;"></div>

	<ul class="time" style="font-family:Arial;">

		<li id="hours"></li>
		<li id="point">:</li>
		<li id="min"></li>
		<li id="point">:</li>
		<li id="sec"></li>

		<div style="margin-top:-23px;display:block;padding-right:166px;clear:both;"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/time.png', '', array('width' => '24', 'height' => '24')) ?></div>
	</ul><br />
</div>
	<?php if(isset($this->breadcrumbs)):?>
		<?php /*$this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		));*/ ?><!-- breadcrumbs -->

		<?php
			$this->widget('bootstrap.widgets.BsBreadCrumb', array(
			    'links' => $this->breadcrumbs,
			    // will change the container to ul
			    'tagName' => 'ul',
			    // will generate the clickable breadcrumb links
			    'activeLinkTemplate' => '<li><a href="{url}">{label}</a></li>',
			    // will generate the current page url : <li>News</li>
			    'inactiveLinkTemplate' => '<li>{label}</li>',
			    // will generate your homeurl item : <li><a href="/dr/dr/public_html/">Home</a></li>
			    'homeLink' => BsHtml::openTag('li') . BsHtml::icon(BsHtml::GLYPHICON_HOME) . BsHtml::closeTag('li')
			));
		?><!-- breadcrumbs -->
	<?php endif?>

	<div role="main">
		<?php echo $content; ?>
	</div>

	<br><br><br><br><br><br><br>
	<div id="footer" align="center">
		Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div><!-- footer -->

</div><!-- page -->
	
</body>
</html>
